package com.lex.entity.account;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
@Schema(name = "AddUserDto", description = "添加用户参数实体类")
public class AddUserDto {
    @Schema(description = "用户userId")
    private Long userId;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "用户名")
    private String account;
    @Schema(description = "真实姓名")
    private String trueName;
    @Schema(description = "手机号")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phoneNum;
    @Schema(description = "邮箱")
    @Email(message = "邮箱格式不正确")
    private String email;
    @Schema(description = "密码")
    private String password;
    @Schema(description = "确认密码")
    private String confirmPassword;
    @Schema(description = "部门id")
    private Long dept;
    @Schema(description = "角色id")
    private Long role;
}
